package com.ad.backstage.controller;

import com.ad.backstage.common.interceptor.RequestHolder;
import com.ad.payload.model.CurrentUser;
import com.ad.payload.model.ResultBean;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author:dxgong
 * @日期 2021/3/28 10:12
 * @注释
 */
@RestController
public class TestController {

    @PostMapping("test")
    public ResultBean test(String name){
        CurrentUser currentUser = RequestHolder.getCurrentUser();
        System.out.println(name + ", hello world");
        return ResultBean.success();
    }
}
